package com.rd.student.jike.class4.wanghaixin.test0727;

public class Decorator extends Drink {

    private Drink drink;

    public Decorator(Drink drink){
        this.drink = drink;
    }

    @Override
    public double cost() {
        return super.getPrice()+drink.getPrice();
    }


}
